From 315d04fda6a7c4c3f52ce815ad94990025c9b0c3 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Sep 2005 14:19:46 +0000 Subject: [PATCH] Don't prefer 'notes' on a shortname if we have an empty (but non-null) notes. (Test case: input from a tabsep file...) --- mkshort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkshort.c b/mkshort.c index 8c2c96005..2ab7e220c 100644 --- a/mkshort.c +++ b/mkshort.c @@ -478,7 +478,8 @@ mkshort_from_wpt(void *h, const waypoint *wpt) * which contains placer name, diff, terr, and generally way * more stuff than should be in any one field... */ - if (wpt->gc_data.diff && wpt->gc_data.terr && wpt->notes) { + if (wpt->gc_data.diff && wpt->gc_data.terr && + wpt->notes && wpt->notes[0]) { return mkshort(h, wpt->notes); } -- 2.30.2